package utils;

import book.Library;

//单例模式，确保某一个类只有一个实例，并提供一个全局访问点
public class LibrarySingleton {
    private static Library library;

    private LibrarySingleton(){

    }

    public static Library getInstance(){
        if(library == null){
            library = new Library();
        }
        return library;
    }
}
